package other;

import org.junit.Test;
import utils.ListNode;

import java.util.ArrayList;

public class Test_other{
    @Test
    //重复的子字符串
    public void test459(){
        System.out.println(new repeatedSubstringPattern_459().repeatedSubstringPattern("abab"));
    }

    @Test
    // N 叉树的层序遍历
    public void test429(){
        Node head = new Node(1);
        Node head1 = new Node(1);
        Node head2 = new Node(1);
        Node head3 = new Node(1);
        Node head4 = new Node(1);
        head.children=new ArrayList<>();
        head1.children=new ArrayList<>();
        head.children.add(head1);
        head.children.add(head2);
        head.children.add(null);
        head1.children.add(head3);
        head1.children.add(head4);
        System.out.println(new levelOrder_429().levelOrder(head));
    }

    @Test
    //重复的子字符串
    public void test416(){
        int[]nums=new int[]{1,2,3};
        System.out.println(new combinationSum4_377().combinationSum4(nums,4));
    }
}
